package com.shierke.Ume.ui.activity.explore

import android.content.Context
import android.os.Bundle
import androidx.recyclerview.widget.StaggeredGridLayoutManager
import com.shierke.Ume.R
import com.shierke.Ume.base.BaseActivity
import com.shierke.Ume.ui.adapter.explore.ExploreSubjectTalkAdapter
import com.shierke.Ume.util.startActivity
import kotlinx.android.synthetic.main.activity_explore_subject_talk.*

/**
 * Create by Ybx
 * on 2020-10-15
 * Desribe:   广场帖子话题集合
 */
class ExploreSubjectTalkActivity : BaseActivity() {

    companion object {
        fun startActivity(context: Context) {
            context.startActivity<ExploreSubjectTalkActivity>()
        }
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        setContentView(R.layout.activity_explore_subject_talk)


        setActivityTitleHintText("# long legs #")

        val staggeredGridLayoutManager =
            StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL)
        val exploreSubjectTalkAdapter = ExploreSubjectTalkAdapter()

        talkRecycle.apply {
            layoutManager = staggeredGridLayoutManager
            adapter = exploreSubjectTalkAdapter
        }

    }
}